Chess set materials and views

ISET3d-v4 enables users to create spectral irradiance images. These can be passed through the human optics to calculate cone excitations.
This script illustrates ISET3d-v4 in connection with ISETCam, rather than ISETBio. The reason is the HDR pulldown.
BW should put the HDR pulldown (and all the ISETCam improvements) into ISETBio scene and oi functions.
The script will run with ISETBio. The appearance of the pieces and lighting, however, appears to vary between PBRT V3 and V4.
See also
isetspitschan directory

Initialize for ISET3d

ieInit
if ~piDockerExists, piDockerConfig; end
highRes = true;

Read the chess set model

chessR = piRecipeDefault('scene name','ChessSet');
Read 9 materials and 3 textures..

Add some new materials to the scene so we can change the chess set and board materials.

chessR = piMaterialsInsert(chessR);
Scene materials: ChessSet ------------------------------- name type ________________ _______________ 1 <undefined> coateddiffuse 2 Black_glossy coateddiffuse 3 Filt_004 diffuse 4 Gray diffuse 5 Gray_glossy coateddiffuse 6 GroundMaterial coateddiffuse 7 Lyse_brikker_008 coateddiffuse 8 Mrke_brikker_004 coateddiffuse 9 Mtl coateddiffuse 10 Mtl8 diffuse 11 Red diffuse 12 Red_glossy coateddiffuse 13 White diffuse 14 White_glossy coateddiffuse 15 brickwall001 diffuse 16 brickwall002 diffuse 17 brickwall003 diffuse 18 checkerboard diffuse 19 glass dielectric 20 glass_dark dielectric 21 glass_exterior coatedconductor 22 glass_frosted dielectric 23 macbethchart diffuse 24 mahogany_dark diffuse 25 marbleBeige coateddiffuse 26 mirror conductor 27 planeBrown coateddiffuse 28 planeTan coateddiffuse 29 ringsrays diffuse 30 slantededge diffuse 31 wood001 diffuse 32 wood002 diffuse -------------------------------

Add several points of view.

We can vary these later, but first we pick one and render.
toObject = [0.03 0.05 -0.01]; % A good object
chessR.set('to',toObject);
% Top view, looking forward
topForward = [-0.0000 0.150 -0.6000];
% Top view, looking back
topBackward = [0 0.4 0.5];
% Side view
% sideView = [0.7 0.2 -0.1];
sideView = [0.5138 0.15 -0.40];
% Top view, lower, forward
topForward2 = [-0.0000 0.18 -0.6000];
% The field of view in degrees
chessR.set('fov',70);

Choose the resolution for the rendering

if ~highRes
chessR.set('rays per pixel',64);
chessR.set('film resolution',[256 256]);
chessR.set('n bounces',3);
else
chessR.set('rays per pixel',512);
chessR.set('film resolution',[768 768]);
chessR.set('n bounces',5);
end

List the default objects and materials

% This is a list of the objects tha make up the chess set.
chessR.show('objects');
material positions (m) sizes (m) ____________________ ___________________ __________________ 0006ID_001_ChessSet_mesh_00001_O {'Lyse_brikker_008'} {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0009ID_001_ChessSet_mesh_00002_O {'Mrke_brikker_004'} {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0012ID_001_ChessSet_mesh_00003_O {'Mrke_brikker_004'} {'0.07 0.05 0.01' } {'NaN NaN NaN' } 0015ID_001_ChessSet_mesh_00004_O {'Filt_004' } {'0.04 0.05 -0.05'} {'NaN NaN NaN' } 0018ID_001_ChessSet_mesh_00005_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0021ID_001_ChessSet_mesh_00006_O {'Mrke_brikker_004'} {'0.05 0.05 -0.05'} {'NaN NaN NaN' } 0024ID_001_ChessSet_mesh_00007_O {'Lyse_brikker_008'} {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0027ID_001_ChessSet_mesh_00008_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0030ID_001_ChessSet_mesh_00009_O {'Filt_004' } {'0.07 0.05 0.01' } {'NaN NaN NaN' } 0033ID_001_ChessSet_mesh_00010_O {'Lyse_brikker_008'} {'0.01 0.05 -0.04'} {'NaN NaN NaN' } 0036ID_001_ChessSet_mesh_00011_O {'Mrke_brikker_004'} {'0.01 0.05 -0.01'} {'NaN NaN NaN' } 0039ID_001_ChessSet_mesh_00012_O {'Filt_004' } {'0.01 0.05 -0.01'} {'NaN NaN NaN' } 0042ID_001_ChessSet_mesh_00013_O {'Mrke_brikker_004'} {'-0.00 0.05 0.01'} {'NaN NaN NaN' } 0045ID_001_ChessSet_mesh_00014_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0048ID_001_ChessSet_mesh_00015_O {'Filt_004' } {'0.03 0.05 -0.01'} {'NaN NaN NaN' } 0051ID_001_ChessSet_mesh_00016_O {'Filt_004' } {'-0.02 0.05 0.01'} {'NaN NaN NaN' } 0054ID_001_ChessSet_mesh_00017_O {'Lyse_brikker_008'} {'0.14 0.05 0.20' } {'NaN NaN NaN' } 0057ID_001_ChessSet_mesh_00018_O {'Mrke_brikker_004'} {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0060ID_001_ChessSet_mesh_00019_O {'Lyse_brikker_008'} {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0063ID_001_planeTan-585174_O {'planeTan' } {'0.02 0.05 0.01' } {'0.40 0.00 0.40'} 0066ID_001_ChessSet_mesh_00020_O {'Lyse_brikker_008'} {'0.05 0.05 0.01' } {'NaN NaN NaN' } 0069ID_001_ChessSet_mesh_00021_O {'Filt_004' } {'-0.00 0.05 0.01'} {'NaN NaN NaN' } 0072ID_001_ChessSet_mesh_00022_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0075ID_001_ChessSet_mesh_00023_O {'Mrke_brikker_004'} {'0.01 0.05 -0.01'} {'NaN NaN NaN' } 0078ID_001_ChessSet_mesh_00024_O {'Lyse_brikker_008'} {'-0.03 0.05 0.14'} {'NaN NaN NaN' } 0081ID_001_ChessSet_mesh_00025_O {'Mrke_brikker_004'} {'0.04 0.05 0.01' } {'NaN NaN NaN' } 0084ID_001_ChessSet_mesh_00026_O {'Lyse_brikker_008'} {'0.06 0.05 0.01' } {'NaN NaN NaN' } 0087ID_001_ChessSet_mesh_00027_O {'Mrke_brikker_004'} {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0090ID_001_ChessSet_mesh_00028_O {'Mrke_brikker_004'} {'0.09 0.05 0.01' } {'NaN NaN NaN' } 0093ID_001_ChessSet_mesh_00029_O {'Mrke_brikker_004'} {'-0.00 0.05 0.01'} {'NaN NaN NaN' } 0096ID_001_ChessSet_mesh_00030_O {'Lyse_brikker_008'} {'0.05 0.05 0.01' } {'NaN NaN NaN' } 0099ID_001_ChessSet_mesh_00031_O {'Filt_004' } {'0.01 0.05 -0.01'} {'NaN NaN NaN' } 0102ID_001_ChessSet_mesh_00032_O {'Lyse_brikker_008'} {'-0.07 0.05 0.04'} {'NaN NaN NaN' } 0105ID_001_ChessSet_mesh_00033_O {'Filt_004' } {'0.06 0.05 0.01' } {'NaN NaN NaN' } 0108ID_001_ChessSet_mesh_00034_O {'Filt_004' } {'0.14 0.05 0.20' } {'NaN NaN NaN' } 0111ID_001_ChessSet_mesh_00035_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0114ID_001_ChessSet_mesh_00036_O {'Filt_004' } {'0.05 0.05 0.01' } {'NaN NaN NaN' } 0117ID_001_ChessSet_mesh_00037_O {'Lyse_brikker_008'} {'0.14 0.05 0.20' } {'NaN NaN NaN' } 0120ID_001_ChessSet_mesh_00038_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0123ID_001_planeBrown-336143_O {'planeBrown' } {'0.02 0.05 0.01' } {'0.50 0.01 0.50'} 0126ID_001_ChessSet_mesh_00039_O {'Mrke_brikker_004'} {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0129ID_001_ChessSet_mesh_00040_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0132ID_001_ChessSet_mesh_00041_O {'Lyse_brikker_008'} {'-0.03 0.05 0.13'} {'NaN NaN NaN' } 0135ID_001_ChessSet_mesh_00042_O {'Filt_004' } {'0.14 0.05 0.20' } {'NaN NaN NaN' } 0138ID_001_ChessSet_mesh_00043_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0141ID_001_ChessSet_mesh_00044_O {'Mrke_brikker_004'} {'0.01 0.05 -0.01'} {'NaN NaN NaN' } 0144ID_001_ChessSet_mesh_00045_O {'Mrke_brikker_004'} {'-0.02 0.05 0.01'} {'NaN NaN NaN' } 0147ID_001_ChessSet_mesh_00046_O {'Filt_004' } {'0.09 0.05 0.01' } {'NaN NaN NaN' } 0150ID_001_ChessSet_mesh_00047_O {'Lyse_brikker_008'} {'-0.01 0.05 0.01'} {'NaN NaN NaN' } 0153ID_001_ChessSet_mesh_00048_O {'planeTan' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0156ID_001_ChessSet_mesh_00049_O {'Filt_004' } {'0.04 0.05 0.01' } {'NaN NaN NaN' } 0159ID_001_ChessSet_mesh_00050_O {'Mrke_brikker_004'} {'0.01 0.05 -0.01'} {'NaN NaN NaN' } 0162ID_001_ChessSet_mesh_00051_O {'Filt_004' } {'0.05 0.05 -0.05'} {'NaN NaN NaN' } 0165ID_001_ChessSet_mesh_00052_O {'Lyse_brikker_008'} {'0.03 0.05 -0.01'} {'NaN NaN NaN' } 0168ID_001_ChessSet_mesh_00053_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0171ID_001_ChessSet_mesh_00054_O {'Filt_004' } {'0.01 0.05 -0.04'} {'NaN NaN NaN' } 0174ID_001_ChessSet_mesh_00055_O {'Mrke_brikker_004'} {'-0.02 0.05 0.01'} {'NaN NaN NaN' } 0177ID_001_ChessSet_mesh_00056_O {'Filt_004' } {'-0.03 0.05 0.13'} {'NaN NaN NaN' } 0180ID_001_ChessSet_mesh_00057_O {'Lyse_brikker_008'} {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0183ID_001_ChessSet_mesh_00058_O {'Filt_004' } {'0.14 0.05 0.20' } {'NaN NaN NaN' } 0186ID_001_ChessSet_mesh_00059_O {'Mrke_brikker_004'} {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0189ID_001_ChessSet_mesh_00060_O {'Mrke_brikker_004'} {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0192ID_001_Lyse_brikker_008-295927_O {'Lyse_brikker_008'} {'0.02 0.05 0.01' } {'0.40 0.01 0.40'} 0195ID_001_ChessSet_mesh_00061_O {'Mrke_brikker_004'} {'0.04 0.05 -0.05'} {'NaN NaN NaN' } 0198ID_001_ChessSet_mesh_00062_O {'Filt_004' } {'-0.00 0.05 0.01'} {'NaN NaN NaN' } 0201ID_001_ChessSet_mesh_00063_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0204ID_001_planeBrown-286412_O {'planeBrown' } {'0.02 0.05 0.01' } {'0.40 0.00 0.40'} 0207ID_001_ChessSet_mesh_00064_O {'Lyse_brikker_008'} {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0210ID_001_ChessSet_mesh_00065_O {'Lyse_brikker_008'} {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0213ID_001_ChessSet_mesh_00066_O {'Filt_004' } {'-0.01 0.05 0.01'} {'NaN NaN NaN' } 0216ID_001_ChessSet_mesh_00067_O {'Filt_004' } {'-0.07 0.05 0.04'} {'NaN NaN NaN' } 0219ID_001_ChessSet_mesh_00068_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0222ID_001_ChessSet_mesh_00069_O {'Lyse_brikker_008'} {'0.01 0.05 -0.04'} {'NaN NaN NaN' } 0225ID_001_ChessSet_mesh_00070_O {'Lyse_brikker_008'} {'0.14 0.05 0.20' } {'NaN NaN NaN' } 0228ID_001_ChessSet_mesh_00071_O {'Filt_004' } {'-0.03 0.05 0.14'} {'NaN NaN NaN' } 0231ID_001_ChessSet_mesh_00072_O {'Mtl' } {'0.01 0.02 0.03' } {'NaN NaN NaN' } 0234ID_001_ChessSet_mesh_00073_O {'Mtl8' } {'0.01 0.03 0.03' } {'NaN NaN NaN' } 0237ID_001_GroundMaterial-71768_O {'GroundMaterial' } {'0.02 0.00 -0.38'} {'4.40 4.40 0.00'} From [0.00, 0.070000, -0.500000] to [0.03, 0.050000, -0.010000] up [0.00, 1.000000, 0.000000]

Render

[~,results] = piWRS(chessR,'show',false,'rgb',true);
*** Rendering time for ChessSet: 43.0 sec ***
ieNewGraphWin; imagescRGB(results.rgb.^0.5);

Modify the lights materials

Change the ambient lighting to be a skymap from a room

chessR.set('light', 'all', 'delete');
chessR.set('skymap','room.exr');
% We can insert code to rotate the skymap around.

Change the materials to glass and mirror

% We change the material of the light and dark pieces.
% We also change the number of bounces so the glass and metal look
% good.
names = chessR.get('object names no id');
for ii=1:numel(names)
if piContains(names{ii},'mesh')
thisMaterial = chessR.get('asset',names{ii},'material name');
if piContains(thisMaterial,'Lyse')
chessR.set('asset',names{ii},'material name','glass');
elseif piContains(thisMaterial,'Mrke')
chessR.set('asset',names{ii},'material name','mirror');
end
end
end

Do the rendering

chessR.set('from',topForward);
chessR.set('object distance',0.35);
if ~highRes
chessR.set('rays per pixel',64);
chessR.set('film resolution',[256 256]);
chessR.set('n bounces',2);
else
chessR.set('rays per pixel',512);
chessR.set('film resolution',[768 768]);
chessR.set('n bounces',5);
end
[~,results] = piWRS(chessR,'show',false,'rgb',true);
*** Rendering time for ChessSet: 49.1 sec ***
ieNewGraphWin; imagescRGB(results.rgb.^0.5);

Alter the materials and point of view

Now we change the chess set pieces to marble and mahogany.
chessR = piRecipeDefault('scene name','chess set');
Read 9 materials and 3 textures..
chessR = piMaterialsInsert(chessR);
Scene materials: ChessSet ------------------------------- name type ________________ _______________ 1 <undefined> coateddiffuse 2 Black_glossy coateddiffuse 3 Filt_004 diffuse 4 Gray diffuse 5 Gray_glossy coateddiffuse 6 GroundMaterial coateddiffuse 7 Lyse_brikker_008 coateddiffuse 8 Mrke_brikker_004 coateddiffuse 9 Mtl coateddiffuse 10 Mtl8 diffuse 11 Red diffuse 12 Red_glossy coateddiffuse 13 White diffuse 14 White_glossy coateddiffuse 15 brickwall001 diffuse 16 brickwall002 diffuse 17 brickwall003 diffuse 18 checkerboard diffuse 19 glass dielectric 20 glass_dark dielectric 21 glass_exterior coatedconductor 22 glass_frosted dielectric 23 macbethchart diffuse 24 mahogany_dark diffuse 25 marbleBeige coateddiffuse 26 mirror conductor 27 planeBrown coateddiffuse 28 planeTan coateddiffuse 29 ringsrays diffuse 30 slantededge diffuse 31 wood001 diffuse 32 wood002 diffuse -------------------------------

Change the camera position but still look at the same object.

chessR.set('from',topBackward);
chessR.set('to',toObject);
chessR.set('light', 'all', 'delete');
chessR.set('skymap','room.exr');

Change the material again

names = chessR.get('object names no id');
for ii=1:numel(names)
if piContains(names{ii},'mesh')
thisMaterial = chessR.get('asset',names{ii},'material name');
if piContains(thisMaterial,'Lyse')
chessR.set('asset',names{ii},'material name','wood001');
elseif piContains(thisMaterial,'Mrke')
chessR.set('asset',names{ii},'material name','glass');
end
end
end
% These materials worked, too.
% chessR.set('material','planeTan','kd val','wood001');
% chessR.set('material','planeTan','kd val','wood002');
% chessR.set('material','planeTan','kd val','marbleBeige');
n = chessR.get('object names');
ii = find(piContains(n,'GroundMaterial'));
chessR.set('asset',n{ii},'material name','brickwall001');

Have a look at the new materials

chessR.show('objects');
material positions (m) sizes (m) ____________________ ___________________ __________________ 0004ID_001_ChessSet_mesh_00001_O {'wood001' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0007ID_001_ChessSet_mesh_00002_O {'glass' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0010ID_001_ChessSet_mesh_00003_O {'glass' } {'0.07 0.05 0.01' } {'NaN NaN NaN' } 0013ID_001_ChessSet_mesh_00004_O {'Filt_004' } {'0.04 0.05 -0.05'} {'NaN NaN NaN' } 0016ID_001_ChessSet_mesh_00005_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0019ID_001_ChessSet_mesh_00006_O {'glass' } {'0.05 0.05 -0.05'} {'NaN NaN NaN' } 0022ID_001_ChessSet_mesh_00007_O {'wood001' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0025ID_001_ChessSet_mesh_00008_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0028ID_001_ChessSet_mesh_00009_O {'Filt_004' } {'0.07 0.05 0.01' } {'NaN NaN NaN' } 0031ID_001_ChessSet_mesh_00010_O {'wood001' } {'0.01 0.05 -0.04'} {'NaN NaN NaN' } 0034ID_001_ChessSet_mesh_00011_O {'glass' } {'0.01 0.05 -0.01'} {'NaN NaN NaN' } 0037ID_001_ChessSet_mesh_00012_O {'Filt_004' } {'0.01 0.05 -0.01'} {'NaN NaN NaN' } 0040ID_001_ChessSet_mesh_00013_O {'glass' } {'-0.00 0.05 0.01'} {'NaN NaN NaN' } 0043ID_001_ChessSet_mesh_00014_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0046ID_001_ChessSet_mesh_00015_O {'Filt_004' } {'0.03 0.05 -0.01'} {'NaN NaN NaN' } 0049ID_001_ChessSet_mesh_00016_O {'Filt_004' } {'-0.02 0.05 0.01'} {'NaN NaN NaN' } 0052ID_001_ChessSet_mesh_00017_O {'wood001' } {'0.14 0.05 0.20' } {'NaN NaN NaN' } 0055ID_001_ChessSet_mesh_00018_O {'glass' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0058ID_001_ChessSet_mesh_00019_O {'wood001' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0061ID_001_planeTan-780201_O {'planeTan' } {'0.02 0.05 0.01' } {'0.40 0.00 0.40'} 0064ID_001_ChessSet_mesh_00020_O {'wood001' } {'0.05 0.05 0.01' } {'NaN NaN NaN' } 0067ID_001_ChessSet_mesh_00021_O {'Filt_004' } {'-0.00 0.05 0.01'} {'NaN NaN NaN' } 0070ID_001_ChessSet_mesh_00022_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0073ID_001_ChessSet_mesh_00023_O {'glass' } {'0.01 0.05 -0.01'} {'NaN NaN NaN' } 0076ID_001_ChessSet_mesh_00024_O {'wood001' } {'-0.03 0.05 0.14'} {'NaN NaN NaN' } 0079ID_001_ChessSet_mesh_00025_O {'glass' } {'0.04 0.05 0.01' } {'NaN NaN NaN' } 0082ID_001_ChessSet_mesh_00026_O {'wood001' } {'0.06 0.05 0.01' } {'NaN NaN NaN' } 0085ID_001_ChessSet_mesh_00027_O {'glass' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0088ID_001_ChessSet_mesh_00028_O {'glass' } {'0.09 0.05 0.01' } {'NaN NaN NaN' } 0091ID_001_ChessSet_mesh_00029_O {'glass' } {'-0.00 0.05 0.01'} {'NaN NaN NaN' } 0094ID_001_ChessSet_mesh_00030_O {'wood001' } {'0.05 0.05 0.01' } {'NaN NaN NaN' } 0097ID_001_ChessSet_mesh_00031_O {'Filt_004' } {'0.01 0.05 -0.01'} {'NaN NaN NaN' } 0100ID_001_ChessSet_mesh_00032_O {'wood001' } {'-0.07 0.05 0.04'} {'NaN NaN NaN' } 0103ID_001_ChessSet_mesh_00033_O {'Filt_004' } {'0.06 0.05 0.01' } {'NaN NaN NaN' } 0106ID_001_ChessSet_mesh_00034_O {'Filt_004' } {'0.14 0.05 0.20' } {'NaN NaN NaN' } 0109ID_001_ChessSet_mesh_00035_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0112ID_001_ChessSet_mesh_00036_O {'Filt_004' } {'0.05 0.05 0.01' } {'NaN NaN NaN' } 0115ID_001_ChessSet_mesh_00037_O {'wood001' } {'0.14 0.05 0.20' } {'NaN NaN NaN' } 0118ID_001_ChessSet_mesh_00038_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0121ID_001_planeBrown-979904_O {'planeBrown' } {'0.02 0.05 0.01' } {'0.50 0.01 0.50'} 0124ID_001_ChessSet_mesh_00039_O {'glass' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0127ID_001_ChessSet_mesh_00040_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0130ID_001_ChessSet_mesh_00041_O {'wood001' } {'-0.03 0.05 0.13'} {'NaN NaN NaN' } 0133ID_001_ChessSet_mesh_00042_O {'Filt_004' } {'0.14 0.05 0.20' } {'NaN NaN NaN' } 0136ID_001_ChessSet_mesh_00043_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0139ID_001_ChessSet_mesh_00044_O {'glass' } {'0.01 0.05 -0.01'} {'NaN NaN NaN' } 0142ID_001_ChessSet_mesh_00045_O {'glass' } {'-0.02 0.05 0.01'} {'NaN NaN NaN' } 0145ID_001_ChessSet_mesh_00046_O {'Filt_004' } {'0.09 0.05 0.01' } {'NaN NaN NaN' } 0148ID_001_ChessSet_mesh_00047_O {'wood001' } {'-0.01 0.05 0.01'} {'NaN NaN NaN' } 0151ID_001_ChessSet_mesh_00048_O {'planeTan' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0154ID_001_ChessSet_mesh_00049_O {'Filt_004' } {'0.04 0.05 0.01' } {'NaN NaN NaN' } 0157ID_001_ChessSet_mesh_00050_O {'glass' } {'0.01 0.05 -0.01'} {'NaN NaN NaN' } 0160ID_001_ChessSet_mesh_00051_O {'Filt_004' } {'0.05 0.05 -0.05'} {'NaN NaN NaN' } 0163ID_001_ChessSet_mesh_00052_O {'wood001' } {'0.03 0.05 -0.01'} {'NaN NaN NaN' } 0166ID_001_ChessSet_mesh_00053_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0169ID_001_ChessSet_mesh_00054_O {'Filt_004' } {'0.01 0.05 -0.04'} {'NaN NaN NaN' } 0172ID_001_ChessSet_mesh_00055_O {'glass' } {'-0.02 0.05 0.01'} {'NaN NaN NaN' } 0175ID_001_ChessSet_mesh_00056_O {'Filt_004' } {'-0.03 0.05 0.13'} {'NaN NaN NaN' } 0178ID_001_ChessSet_mesh_00057_O {'wood001' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0181ID_001_ChessSet_mesh_00058_O {'Filt_004' } {'0.14 0.05 0.20' } {'NaN NaN NaN' } 0184ID_001_ChessSet_mesh_00059_O {'glass' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0187ID_001_ChessSet_mesh_00060_O {'glass' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0190ID_001_Lyse_brikker_008-745902_O {'Lyse_brikker_008'} {'0.02 0.05 0.01' } {'0.40 0.01 0.40'} 0193ID_001_ChessSet_mesh_00061_O {'glass' } {'0.04 0.05 -0.05'} {'NaN NaN NaN' } 0196ID_001_ChessSet_mesh_00062_O {'Filt_004' } {'-0.00 0.05 0.01'} {'NaN NaN NaN' } 0199ID_001_ChessSet_mesh_00063_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0202ID_001_planeBrown-171120_O {'planeBrown' } {'0.02 0.05 0.01' } {'0.40 0.00 0.40'} 0205ID_001_ChessSet_mesh_00064_O {'wood001' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0208ID_001_ChessSet_mesh_00065_O {'wood001' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0211ID_001_ChessSet_mesh_00066_O {'Filt_004' } {'-0.01 0.05 0.01'} {'NaN NaN NaN' } 0214ID_001_ChessSet_mesh_00067_O {'Filt_004' } {'-0.07 0.05 0.04'} {'NaN NaN NaN' } 0217ID_001_ChessSet_mesh_00068_O {'Filt_004' } {'0.02 0.05 0.01' } {'NaN NaN NaN' } 0220ID_001_ChessSet_mesh_00069_O {'wood001' } {'0.01 0.05 -0.04'} {'NaN NaN NaN' } 0223ID_001_ChessSet_mesh_00070_O {'wood001' } {'0.14 0.05 0.20' } {'NaN NaN NaN' } 0226ID_001_ChessSet_mesh_00071_O {'Filt_004' } {'-0.03 0.05 0.14'} {'NaN NaN NaN' } 0229ID_001_ChessSet_mesh_00072_O {'Mtl' } {'0.01 0.02 0.03' } {'NaN NaN NaN' } 0232ID_001_ChessSet_mesh_00073_O {'Mtl8' } {'0.01 0.03 0.03' } {'NaN NaN NaN' } 0235ID_001_GroundMaterial-984915_O {'brickwall001' } {'0.02 0.00 -0.38'} {'4.40 4.40 0.00'} From [0.00, 0.400000, 0.500000] to [0.03, 0.050000, -0.010000] up [0.00, 1.000000, 0.000000]

Render with the new materials and point of view

if ~highRes
chessR.set('rays per pixel',64);
chessR.set('film resolution',[256 256]);
chessR.set('n bounces',2);
else
chessR.set('rays per pixel',512);
chessR.set('film resolution',[768 768]);
chessR.set('n bounces',5);
end
[~,results] = piWRS(chessR,'show',false,'rgb',true);
*** Rendering time for ChessSet: 59.7 sec ***
ieNewGraphWin; imagescRGB(results.rgb.^0.5);

END